<header class="pa-left pa-right pa-bottom-3">
  <div class="clearfix">
    <h1 class="left pa-top-2 f24">后台管理</h1>
    <div class="right">
        <ul class="topbar clearfix pa-top-2">
        <% if admin_signed_in? %>
          <li><%= link_to "退出", destroy_admin_session_path, :method => :delete %></li>
          <li><%= link_to '网站前台首页', '/' %></li>
          <li class="bold no-border"><%= current_admin.email %></li>
        <% end %>
      </ul>
    </div>
  </div>
  <% if admin_signed_in? %>
    <nav class="nav">
      <%= link_to "订单", '/admins/deals' %>
      <%= link_to "用户", '/admins/users' %>
      <%= link_to "产品", '/admins/products' %>
      <%= link_to "代金券", '/admins/vouchers' %>
      <%= link_to "博客", '/admins/blogs' %>
      <%= link_to "留言", '/admins/feedbacks' %>
    </nav>
  <% end %>
</header>